package com.karson.common.response;

import com.karson.common.model.SystemMeta;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper=false)
@Tag(name = "SystemMenuResponse对象",description = "系统路由配置（菜单栏等）")
public class MenusResponse implements Serializable {

    @Serial
    private static final long serialVersionUID=1L;

    @Schema(name = "ID")
    private Integer id;
    @Schema(name = "pid")
    private Integer pid;
    @Schema(name = "路径")
    private String path;
    @Schema(name = "名称")
    private String name;
    @Schema(name = "权限标识")
    private String perms;
    @Schema(name = "组件路径")
    private String component;
    @Schema(name = "排序")
    private Integer sort;
    @Schema(name = "路由扩展属性")
    private SystemMeta meta;
    @Schema(name = "子对象列表")
    private List<MenusResponse> children;

}
